package main

import (
	"io"
	"log"
	"net/http"
)

func main() {
	//设置路由规则
	http.HandleFunc("/", sayHello)
	err := http.ListenAndServe(":8081", nil)
	if err != nil {
		log.Fatal(err)
	}
}

func sayHello(w http.ResponseWriter, r *http.Request) {
	io.WriteString(w, "hello,world,this is v1")
}
